//
//  String+Extension.swift
//  XHWalletUtils
//
//  Created by 边智峰 on 2020/6/10.
//  Copyright © 2020 xinph. All rights reserved.
//

import Foundation

extension String {
    /// eth 公私钥前添加标识
    func hf_addHexPrefix() -> String {
        if !self.hasPrefix("0x") {
            return "0x" + self
        }
        return self
    }
}
